package com.example.costumview;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.costumview.activity.AliPayActivity;
import com.example.costumview.activity.AnimProgressiveActivity;
import com.example.costumview.activity.AnimWaveActivity;
import com.example.costumview.activity.AvatorActivity;
import com.example.costumview.activity.BitmapShaderActivity;
import com.example.costumview.activity.CircleHeaderActivity;
import com.example.costumview.activity.ClipRegionActivity;
import com.example.costumview.activity.CustomViewActivity;
import com.example.costumview.activity.EraserSRCOUT2Activity;
import com.example.costumview.activity.EraserSRCOUTActivity;
import com.example.costumview.activity.FingerViewActivity;
import com.example.costumview.activity.GestureDetectorActivity;
import com.example.costumview.activity.GetPosTanActivity;
import com.example.costumview.activity.MyViewPagerActivity;
import com.example.costumview.activity.NormalGestureTack2Activity;
import com.example.costumview.activity.NormalGestureTackActivity;
import com.example.costumview.activity.PorterDuffXfermodeActivity;
import com.example.costumview.activity.ScrollActivity;
import com.example.costumview.activity.ShadowLayerActivity;
import com.example.costumview.activity.TelescopeActivity;
import com.example.costumview.activity.TestActivity;
import com.example.costumview.activity.ViewAnimActivity;
import com.example.costumview.activity.XfermodeActivity;
import com.example.costumview.activity2.ChartViewActivity;
import com.example.costumview.activity2.FlowLayout2Activity;
import com.example.costumview.activity2.FlowLayoutActivity;
import com.example.costumview.activity2.MyLinActivity;
import com.example.costumview.activity2.SaveLayerUseExampleActivity;
import com.example.costumview.activity2.SlideDeleteRecyActivity;
import com.example.costumview.activity2.Sticky2Activity;
import com.example.costumview.activity2.StickyActivity;
import com.example.costumview.activity2.SwipeDeleteRecyclerviewActivity;
import com.example.costumview.activity2.Telescope2Activity;
import com.example.costumview.activity2.ViewConflict2Activity;
import com.example.costumview.activity2.ViewConflictActivity;
import com.example.costumview.activity2.WindowManageActivity;
import com.example.costumview.customview2.FlowLayout;

public class MainActivity extends AppCompatActivity {

    public <T> void startActivity(Class<T> clazz) {
        startActivity(new Intent(this, clazz));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void fingerInArea(View view) {
        startActivity(FingerViewActivity.class);
    }

    public void testActivity(View view) {
        startActivity(TestActivity.class);
    }

    public void circleheader(View view) {
        startActivity(CircleHeaderActivity.class);
    }

    public void clipAnimation(View view) {
        startActivity(ClipRegionActivity.class);
    }

    public void customview(View view) {
        startActivity(CustomViewActivity.class);
    }

    public void viewanimation(View view) {
        startActivity(ViewAnimActivity.class);
    }

    public void AnimProgressive(View view) {
        startActivity(AnimProgressiveActivity.class);
    }

    public void getPosTan(View view) {
        startActivity(GetPosTanActivity.class);
    }

    public void alipayanim(View view) {
        startActivity(AliPayActivity.class);
    }

    public void gestureView(View view) {
        startActivity(NormalGestureTackActivity.class);
    }

    public void gestureView2(View view) {
        startActivity(NormalGestureTack2Activity.class);
    }

    public void animwave(View view) {
        startActivity(AnimWaveActivity.class);
    }

    public void gesturedetector(View view) {
        startActivity(GestureDetectorActivity.class);
    }

    public void myviewpager(View view) {
        startActivity(MyViewPagerActivity.class);
    }

    public void Scroller(View view) {
        startActivity(ScrollActivity.class);
    }

    public void shadowlayer(View view) {
        startActivity(ShadowLayerActivity.class);
    }

    public void bitmapShader(View view) {
        startActivity(BitmapShaderActivity.class);
    }

    public void telescope(View view) {
        startActivity(TelescopeActivity.class);
    }

    public void avatorview(View view) {
        startActivity(AvatorActivity.class);
    }

    public void PorterDuffXfermode(View view) {
        startActivity(PorterDuffXfermodeActivity.class);
    }

    public void EraserView_SRCOUT(View view) {
        startActivity(EraserSRCOUTActivity.class);
    }

    public void EraserView_SRCOUT2(View view) {
        startActivity(EraserSRCOUT2Activity.class);
    }

    public void learn_savelayer(View view) {
        startActivity(XfermodeActivity.class);
    }

    public void savelayer(View view) {
        startActivity(SaveLayerUseExampleActivity.class);
    }

    public void telescope2(View view) {
        startActivity(Telescope2Activity.class);
    }

    public void verlayout(View view) {
        startActivity(MyLinActivity.class);
    }

    public void flowlayout(View view) {
        startActivity(FlowLayoutActivity.class);
    }

    public void windowmanager(View view) {
        startActivity(WindowManageActivity.class);
    }

    public void flowlayout2(View view) {
        startActivity(FlowLayout2Activity.class);
    }

    public void xindian(View view) {
        startActivity(ChartViewActivity.class);
    }

    public void recyclerview_delete_item(View view) {
        startActivity(SlideDeleteRecyActivity.class);
    }

    public void recyclerview_delete_item2(View view) {
        startActivity(SwipeDeleteRecyclerviewActivity.class);
    }

    public void scroll_conflict1(View view) {
        startActivity(ViewConflictActivity.class);
    }

    public void scroll_conflict2(View view) {
        startActivity(ViewConflict2Activity.class);
    }

    public void scroll_conflict3(View view) {
        startActivity(StickyActivity.class);
    }

    public void scroll_conflict4(View view) {
        startActivity(Sticky2Activity.class);
    }
}